#ifndef LINEBUFFER_H
#define LINEBUFFER_H

#include <QObject>

#include <QPolygonF>

class LineBuffer : public QObject
{
  Q_OBJECT

public:

  static LineBuffer* instance();

  ~LineBuffer();

  QList<QPolygonF> getOffset( const QPolygonF& spine, float distance=1 );

private:

  LineBuffer();

  class LineBufferPrivate;
  QScopedPointer<LineBufferPrivate>         _pd;
};

#define theLineBuffer LineBuffer::instance()

#endif // LINEBUFFER_H
